<template>
  <div class="box">
    <el-form-item label="文本颜色">
      <el-color-picker show-alpha v-model="textStyle.color"> </el-color-picker>
    </el-form-item>
    <el-form-item label="文本字号">
      <el-input-number
        v-model="textStyle.fontSize"
        :max="99"
        :min="10"
        :step="1"
      >
      </el-input-number>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: 'TooltipText',
  inject: ['father'],
  computed: {
    textStyle: {
      get() {
        return this.father.echartsOptions.tooltip.textStyle;
      },
      set(val) {
        this.father.echartsOptions.tooltip.textStyle = val;
      }
    }
  },
  mounted() {},
  methods: {}
};
</script>

<style scoped>
</style>